package com.base.pig.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.base.pig.dto.EventListDto;
import com.base.pig.dto.PendingMattersDto;
import com.base.pig.entity.WEvent;
import com.base.pig.vo.EventListVo;
import com.base.pig.vo.PendingMattersListVo;
import javafx.scene.control.Pagination;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yjh
 * @since 2022-03-25
 */
@Mapper
@Component
public interface WEventMapper extends BaseMapper<WEvent> {
    @MapKey("id")
    List<PendingMattersListVo> pendingMattersList(IPage<PendingMattersListVo> page, @Param("PendingMattersDto") PendingMattersDto pendingMattersDto);

    @MapKey("id")
    List<EventListVo> queryEventList(IPage<EventListVo> page, @Param("EventListDto") EventListDto eventListDtoDto);

}
